package city.spring.modules.material.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 实体类：物资类别表
 *
 * @author 谢金婷
 * @date 2020-12-10 14:18:58
 */
@Data
@TableName("material_category")
public class MaterialCategoryEntity implements Serializable {

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 类别名称
     */
    private String cname;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(insertStrategy = FieldStrategy.NEVER, updateStrategy = FieldStrategy.NEVER)
    private Date gmtModified;

    /**
     * 货架信息列表
     */
    @TableField(exist = false)
    private List<MaterialSettingEntity> children;
}